package ordinal;

/**
 * 用实例域代替[序数]
 */
public enum EnsembleOrdinal {
    SOLO , DUET, TRIO, QUARTET;
    public int numberOfMusicians(){
        // 获取序数
        return ordinal() + 1;
    }
}
